def setUpPackage():
    """Compile an executable and a shared library to test coverage
    """
    import os
    from subprocess import Popen

    myDir = os.path.dirname(__file__)

    p = Popen("scons", shell=True, cwd=myDir)
    if p.wait() != 0:
        raise Exception("Couldn't compile!!")

def tearDownPackage():
    import os
    from subprocess import Popen

    myDir = os.path.dirname(__file__)

    p = Popen("scons -c", shell=True, cwd=myDir)
    if p.wait() != 0:
        raise Exception("Couldn't clean!!")
